
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	   String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()

            + path;
	List<Map<String, Object>> list = (List<Map<String, Object>>) request.getAttribute("listMessage");
%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="../css/pintuer.css">
<link rel="stylesheet" href="../css/admin.css">
<script src="../js/jquery.js"></script>
<script src="../js/pintuer.js"></script>

<script type="text/javascript" language="javaScript">
	function del(url){
		if(confirm("您确定要删除该分类吗？")){
		 	 var th = document.form2;
	  		 th.action="<%=path%>/servlet/NewsAction?action_flag=deleteType&typeId="+url;
			 th.submit();
			
		}else{
		}
	}
	
		function Update(url){
		if(confirm("您确定要修改该分类吗？")){
			 var th = document.form2;
	  		 th.action="<%=path%>/servlet/NewsAction?action_flag=queryMessage&typeId="+url;
			 th.submit();
		}else{
		}
	}
</script>



</head>



<body>
	<form method="post" action="" name="form2">
		<div class="panel admin-panel">
			<div class="padding border-bottom">
				<ul class="search">
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th width="10%">编号</th>
					<th width="15%">酒店名称</th>
					<th width="15%">订阅用户</th>
					<th width="15%">订阅时间</th>
					<th width="30%">操作</th>
				</tr>
				<%
					int houseNumber = 0;
					if (!list.isEmpty()) {
						/*  for(Map<String,Object> map:list){ */
						for (int i = 0; i < list.size(); i++) {
							houseNumber = i + 1;
							Map<String, Object> map = list.get(i);
				%>
				<tr>
					<td><%=houseNumber%></td>
					<td><%=map.get("orderMessageName")%></td>
					<td><%=map.get("orderUserName")%></td>
					<td><%=map.get("orderTime")%></td>
					<td><div class="button-group">
					<a class="button border-red" onclick="del(<%=map.get("typeId")%>)"><span class="icon-trash-o"></span> 删除</a>
						</div></td>
				</tr>
				<%
					}
					}
				%>
			</table>
		</div>
	</form>

</body>
</html>